import axios from "../http/axios"

export const getBanner = () => axios.get('banner')

export const getList = () => axios.get('recommend/appIndex')

// 获取短信验证码
export const getCode = (obj) => axios.post('smsCode', obj)

// 登录
export const getCodeLogin = (obj) => axios.post('login', obj)

// 设置密码
export const editpassword = (obj) => axios.post('password', obj)

// 获取⽤户信息
export const getusermessage = () => axios.get('userInfo')

// 获取老师信息
export const getTearchDetail = (id) => axios.get(`teacher/${id}`)

// 关注
export const getTearchCollect = (id) => axios.get(`teacher/collect/${id}`)

// 特⾊课（课程筛选）
export const getCourse = (obj) => axios.get('courseBasis',{
    params:obj
})

// 筛选
export const getClassify = () => axios.get('courseClassify')

// 课程详情
export const getClassifyDetail = (id) => axios.get(`courseInfo/basis_id=${id}`)